package net.thxjj.mobileServer.service;

import net.thxjj.mobileServer.util.ParameterMap;
import net.thxjj.sitermodel.Device;
import net.thxjj.sitermodel.MobileUser;
import net.thxjj.sitermodel.Place;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

@Component
public interface IUserService {
    public HashMap<String,Object> Login(ParameterMap pm);
    public MobileUser getUserInfoById(long user_id);
    public ParameterMap getUserSnapshot(String access_token);
    public HashMap<String,Object> changePassword(ParameterMap pm);
    public Object refreshToken(String refres_token,long user_id);
    public List<Device> getBindDeviceList(long user_id);
    public HashMap<String,Object> insertRelation(String device_id,String bind_key,long user_id);
    public HashMap<String,Object> unbind(String device_id,String bind_key,long user_id);
    public HashMap<String,Object> cancelAccount(long user_id);
    public List<Place> getPlaceAndRooms(long user_id);
    public HashMap<String,Object> getPinCode(long user_id,String ssid);
    public HashMap<String,Object> getNewDeviceList(String pincode,long user_id);
}
